package org.jdna.minecraft.tools;

import java.text.FieldPosition;
import java.text.Format;
import java.text.MessageFormat;
import java.text.ParsePosition;

public class TextFormat extends Format {
	private String format;

	public TextFormat(String format) {
		this.format=format;
	}

	@Override
	public StringBuffer format(Object obj, StringBuffer toAppendTo,	FieldPosition pos) {
		toAppendTo.append(MessageFormat.format(format, obj));
		return toAppendTo;
	}

	@Override
	public Object parseObject(String source, ParsePosition pos) {
		return 0;
	}
}
